package homework.workTest;

/**
 * Controller
 *
 * @author byc
 * @date 2021-10-22
 */
public class Controller extends ZwPortailsUser {

    public static void main(String[] args) {
        ZwPortailsUser zwPortailsUser = new ZwPortailsUser();
        zwPortailsUser.setSex(1);
        zwPortailsUser.setHealth("1");
        zwPortailsUser.setIsMarried("1");
        zwPortailsUser.setEducationBackground("1");

        Long sex = null;
        String isMarried = "";
        String health = "";
        String educationBackground = "";

        //sex(1男 2女)
        switch (zwPortailsUser.getSex()) {
            case 1:
                sex = 1324598485751795714L;
                break;
            case 2:
                sex = 1324598507394404353L;
                break;
        }
        //isMarried(1未婚 2已婚 3离异 4丧偶)
        switch (zwPortailsUser.getIsMarried()) {
            case "1":
                isMarried = "1439133366836842498";
                break;
            case "2":
                isMarried = "1439133403570556929";
                break;
            case "3":
                isMarried = "1439133454405521409";
                break;
            case "4":
                isMarried = "1439133494939275265";
                break;
        }
        //health(1健康 2一般 3较差)
        switch (zwPortailsUser.getSex()) {
            case 1:
                health = "1439111046693412865";
                break;
            case 2:
                health = "1439111079908106241";
                break;
            case 3:
                health = "1439111140469661697";
                break;
        }
        //学历educationBackground(1小学 2初中 3高中 4专科 5本科)
        switch (zwPortailsUser.getEducationBackground()) {
            case "1":
                educationBackground = "1439109643690336257";
                break;
            case "2":
                educationBackground = "1439109848452063233";
                break;
            case "3":
                educationBackground = "1439109944057028610";
                break;
            case "4":
                educationBackground = "1439110066987884546";
                break;
            case "5":
                educationBackground = "1439110175146401793";
                break;
        }
        System.out.println(sex + "," + isMarried + "," + health+","+educationBackground);
    }
}
